package net.telesing.tcmc.back.dao;

import net.telesing.tcmc.back.model.UserModel;
import net.telesing.tcmc.common.BaseDao;
import net.telesing.tcmc.common.BaseModel;
import net.telesing.tcmc.common.QueryParam;
import net.telesing.tcmc.common.QueryReturn;
import org.nutz.dao.Cnd;
import org.nutz.ioc.loader.annotation.IocBean;

/**
 * Created by Administrator on 2015/6/19.
 */
@IocBean
public class UserDao extends BaseDao
{
    public int safeDelete(long id, long updater) throws IllegalAccessException, InstantiationException
    {
        return super.safeDelete(UserModel.class, id, updater);
    }

    public int delete(long id)
    {
        return super.delete(UserModel.class, id);
    }

    public UserModel fetch(long id)
    {
        return super.fetch(UserModel.class, id);
    }

    public UserModel fetch(Cnd cnd)
    {
        return super.fetch(UserModel.class, cnd);
    }

    public <T extends BaseModel, E extends QueryParam> QueryReturn queryPage(E e)
    {
        return super.queryPage(UserModel.class, e);
    }

}